//
//  HPAlbum.m
//  LockTest
//
//  Created by ZhangBo on 2018/12/2.
//  Copyright © 2018 ZhangBo. All rights reserved.
//

#import "HPAlbum.h"

@interface HPAlbum ()
@property(nonatomic, assign) BOOL frozen;
@end

@implementation HPAlbum

- (void)freeze {
    self.frozen = YES;
}

- (void)setOwner:(HPUser *)owner {
    if (!self.frozen) {
        _owner = owner;
    }
}

- (void)setName:(NSString *)name {
    if (!self.frozen) {
        _name = name;
    }
}

- (void)setAlbumId:(NSString *)albumId {
    if (!self.frozen) {
        _albumId = albumId;
    }
}

- (void)setDescrip:(NSString *)descrip {
    if (!self.frozen) {
        _descrip = descrip;
    }
}

- (void)setCreationTime:(NSDate *)creationTime {
    if (!self.frozen) {
        _creationTime = creationTime;
    }
}

- (void)setCoverPhoto:(HPPhoto *)coverPhoto {
    if (!self.frozen) {
        _coverPhoto = coverPhoto;
    }
}
@end
